package com.example.mapper.ums;

import com.example.model.ums.UmsAdminRole;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 用户角色关联Mapper
 */
@Mapper
public interface UmsAdminRoleMapper {

    /**
     * 条件查询列表
     * @param umsAdminRole
     * @return
     */
    List<UmsAdminRole> findUmsAdminRolesByParam(UmsAdminRole umsAdminRole);

    /**
     * 条件查询单条
     * @param umsAdminRole
     * @return
     */
    UmsAdminRole findUmsAdminRoleByParam(UmsAdminRole umsAdminRole);


    /**
     * 新增
     * @param umsAdminRole
     * @return
     */
    int insert(UmsAdminRole umsAdminRole);

    /**
     * 删除
     * @param umsAdminRole
     * @return
     */
    int deleteByUmsAdminId(UmsAdminRole umsAdminRole);
}
